package payroll.webapp

class Contact {
	String mobile
	String phone1
	String phone2
	String fax
	String email
	
    static constraints = {
		mobile(maxSize:13, nullable:true, blank:true)
		phone1(maxSize:20, nullable:true, blank:true)
		phone2(maxSize:20, nullable:true, blank:true)
		fax(maxSize:20, nullable:true, blank: true)
		email(email:true, nullable:true, blank:true)
    }
	
	static mapping = {
		table "contacts"
	}
	
	static belongsTo = [person: PersonDetails]
}
